<!doctype html>
<!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if IE 7]>    <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]-->
<!--[if IE 8]>    <html class="no-js lt-ie9" lang="en"> <![endif]-->
<!-- Consider adding a manifest.appcache: h5bp.com/d/Offline -->
<!--[if gt IE 8]><!-->
<html class="no-js" lang="en">
<!--<![endif]-->
<head>
<meta charset="utf-8">

<?php 
	//INIT COMMON OBJECTS
	$config = ConfigFactory::getInstance()->getConfig();
	$translator = LanguageFactory::getInstance();
?>
<!-- Use the .htaccess and remove these lines to avoid edge case issues.
       More info: h5bp.com/i/378 -->
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">

<title><?php echo $config->application->maintitle; ?></title>
<meta name="description" content="">

<!-- Mobile viewport optimized: h5bp.com/viewport -->
<meta name="viewport" content="width=device-width">

<!-- <link rel="shortcut icon" href="/favicon.ico" /> -->
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />

<link href="/css/main.css" rel="stylesheet" type="text/css" media="all" />
<link href="/css/login.css" rel="stylesheet" type="text/css" media="all" />
<link href="/css/dark-hive/jquery-ui-1.10.3.custom.css" rel="stylesheet" type="text/css" media="all" />
<link href="/css/dark-hive/jquery-ui-override.css" rel="stylesheet" type="text/css" media="all" />

</head>
<body>
	<script src="/js/jquery-1.10.2.min.js" type="text/javascript"></script>
	<script src="/js/jquery-ui-1.10.3.custom.js" type="text/javascript"></script>
	<script src="/js/main.js" type="text/javascript"></script>

	<script type="text/javascript">
				$(document).ready(function(){
					init();
				});
	</script>


<!-- Layout rendering -->
<?= $this->render('header.phtml') ?>

<div id='content'>
	<?= $this->layout()->content ?>
</div>

<?= $this->render('footer.phtml') ?>

<?php 
	$auth = Zend_Auth::getInstance();
	if($auth->hasIdentity())
	{
		$session = new Zend_Session_Namespace();
		$user = $session->user;
		echo "<div id='account_menu'>";

		echo "	 <div id='account_picture'>".ImageFactory::getInstance()->displayProfileImage($user->image_id)."</div>";
		
		echo 	"<span id='submenu'>
					<a href='/account/manage' class='clean_link_white' > • ".$translator->getTranslation("ManageAccount")."</a><br/>
					<a href='/groups/manage' class='clean_link_white' > • ".$translator->getTranslation("ManageGroup")."</a><br/>
					<a href='/projects/manage' class='clean_link_white' > • ".$translator->getTranslation("ManageProjects")."</a><br/>
					<a href='/groups/managemembers' class='clean_link_white' > • ".$translator->getTranslation("ManageGroupMembers")."</a><br/><br/>
					<a href='/index/logout' class='clean_link_blue' > • ".$translator->getTranslation("Logout")."</a>
				</span>
			</div>";
	}
?>
</body>
</html>
